package com.example.cd5160866.tabs;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;

import com.dada.lib.deeplink.DeepLink;

/**
 * Created by cd5160866 on 07/03/2018.
 */

public class TabApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        DeepLink.initConfig(new DeepLink.OnLinkListener() {
            @Override
            public void onLinkSuccess(Activity activity, Uri dataExtra) {
                Log.d("qw", "获得配置 " + dataExtra.toString());
                activity.startActivity(new Intent(activity, MainActivity.class));
            }
        });
    }
}
